<template>
	<view class="container">
		<image :src="src[type]" mode="widthFix" show-menu-by-longpress></image>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				src: [
					'https://inclusivecommunity.oss-cn-chengdu.aliyuncs.com/attach/2020-07/205bd202007230932342767.png',
					'https://inclusivecommunity.oss-cn-chengdu.aliyuncs.com/attach/2020-07/c0db5202007240929073590.jpg',
					'https://puhuishequ.oss-cn-beijing.aliyuncs.com/attach/2020-07/5d023bfe5b140adf0136e59c04b2b4e.png'
				],
				type: 0,
				
				
			}
		},
		onLoad(option) {
			if (option.type == 1) {
				uni.setNavigationBarTitle({
					title:"惠 · 钰锦"
				})
				this.type = 0;
			} else if (option.type == 2) {
				uni.setNavigationBarTitle({
					title:"惠 · 权行"
				})
				this.type = 1;
			} else if (option.type == 3) {
				uni.setNavigationBarTitle({
					title:"优惠购车"
				})
				this.type = 2;
			}
		},
		methods: {
		}
	}
</script>

<style lang="scss" scoped>
	.container {
		image{
			width: 100%;
		}
	}
</style>
